﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Station.Common.Rejudgment
{
    /// <summary>
    /// 镜头
    /// </summary>
    public class ErrCamera
    {
        public int ID;

        public Point CPos;
        /// <summary>
        /// 镜头图片
        /// </summary>
        public Bitmap CameraImage { get; set; }
        public List<ErrComponent> ErrComponents { get; set; } = new List<ErrComponent>();

        public bool SplitImage()
        {
            if (CameraImage == null) 
                return false;
            bool rc = true;
            foreach(var item in ErrComponents)
            {
                rc&=item.SetImage(CameraImage, CPos);
            }
            return rc;
        }
    }
}
